using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace UserManagementService.DTOs;

/// <summary>
/// 导入组织DTO
/// </summary>
public class ImportOrganizationsDto
{
    /// <summary>
    /// 组织数据列表
    /// </summary>
    [Required]
    public List<OrganizationImportDto> Organizations { get; set; } = new List<OrganizationImportDto>();
}

/// <summary>
/// 组织导入数据DTO
/// </summary>
public class OrganizationImportDto
{
    /// <summary>
    /// 组织名称
    /// </summary>
    [Required]
    public string Name { get; set; }

    /// <summary>
    /// 组织代码
    /// </summary>
    public string Code { get; set; }

    /// <summary>
    /// 组织描述
    /// </summary>
    public string Description { get; set; }

    /// <summary>
    /// 父组织代码
    /// </summary>
    public string ParentCode { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// 是否启用
    /// </summary>
    public bool IsEnabled { get; set; } = true;

    /// <summary>
    /// 备注
    /// </summary>
    public string Remarks { get; set; }
}